package cn.itsource.remote.api;

import cn.itsource.constants.Constants;
import cn.itsource.remote.fallback.LoginApiFallbackFactory;
import cn.itsource.remote.pojo.param.AppLoginParam;
import cn.itsource.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;


@FeignClient(value = Constants.Remote.SERVICE_UAA, contextId = "appLoginApi", fallbackFactory = LoginApiFallbackFactory.class)
public interface LoginApi {

    @PostMapping("/app/login/appLoginInit")
    R<Void> appLoginInit(@RequestBody @Valid AppLoginParam appLoginParam);

}
